﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CaiyinSoft.NetGather.Protocol
{
    public class FilterResult //: IComparer<FilterResult>
    {
        public int HTMLPosition { get; set; }
        public string HTMLResult { get; set; }

        public FilterResult()
        { }

        public FilterResult(int HTMLPosition, string HTMLResult)
        {
            this.HTMLPosition = HTMLPosition;
            this.HTMLResult = HTMLResult;
        }

        /// <summary>
        /// 比较两个过滤器
        /// </summary>
        /// <param name="obj1"></param>
        /// <param name="obj2"></param>
        /// <returns></returns>
        public static int Compare(FilterResult obj1, FilterResult obj2)
        {
            return obj1.HTMLPosition.CompareTo(obj2.HTMLPosition);
        }

    }


}
